package com.numbfish.ch_10.six_blocking_queue.ArrayBlockingQueueTest1.src.test ;

import java.util.concurrent.ArrayBlockingQueue;

public class put {

	public static void main(String[] args) {
		try {
			ArrayBlockingQueue queue = new ArrayBlockingQueue(3);
			queue.put("a1");
			queue.put("a2");
			queue.put("a3");
			System.out.println(queue.size());
			System.out.println(System.currentTimeMillis());
			queue.put("a4");
			System.out.println(System.currentTimeMillis());
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}